/*
 * Copyright (c) 2023-8-1
 * 说明:
 */

package api

import (
	"feng-che.com/server/driver-quiz/myApp"
	"github.com/gofiber/fiber/v2"
)

func installCommonRouter(common fiber.Router) {
	//common.Post("/uploadImg", func(c *fiber.Ctx) error {
	//	file, err := c.FormFile("file")
	//	if err != nil {
	//		return err
	//	}
	//	timeStr := carbon.Now().ToDateString()
	//	fileType := "jpg"
	//	tmp := strings.Split(file.Filename, ".")
	//	fileType = tmp[len(tmp)-1]
	//	newFileName := fmt.Sprint("point-mall/upload/", timeStr, "/", utils.UUIDv4(), ".", fileType)
	//	err = ossRW.OssSimpleUpload(file, newFileName)
	//	if err != nil {
	//		return err
	//	}
	//	return c.JSON(serverCommon.MakeSuccessJson(newFileName))
	//})

	common.Get("/siteOptions", myApp.GetServerInformation)

	//common.Get("/queryTicketCheckingMachine", internal.ExploreTicketCheckMachine)
	//common.Get("/allExamArea", internal.ExploreAllExamArea)
	//common.Get("/dapingPaidui", internal.DaPingQueue)

}
